<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var num = 10;
        console.log(typeof num);
        var str = '111';
        console.log(parseInt(str));
        var str1 = '120px';
        console.log(parseInt('222px'));
        console.log(parseInt('222sdfgafgsd'));
        console.log(parseInt('rere22'));
    </script>
</head>

<body>

</body>

</html>